package com.iims.flowable.flow.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

@ApiModel("表单数据详情")
@Data
public class ExecuteTaskDataVo {
    @ApiModelProperty("当任务发起者Id")
    private String startUserId;

    @ApiModelProperty("流程起始表单Key")
    private String startFormKey = "";

    @ApiModelProperty("当前任务表单Key")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String taskFormKey;

    @ApiModelProperty("目标业务数据")
    private Object businessData;

    @ApiModelProperty("起始任务表单")
    private Object renderedStartForm;

    @ApiModelProperty("历史表单数组")
    private Object historyTaskForms;

    @ApiModelProperty("当前任务表单")
    private Object renderedTaskForm;

    @ApiModelProperty("任务变量数据")
    Map<String, Object> variables;


    @ApiModelProperty("当前任务是否是发起者")
    private Boolean initiator = false;


    @JsonIgnore
    @ApiModelProperty(hidden = true)
    @Deprecated
    private Boolean showBusinessKey;

    @JsonIgnore
    @ApiModelProperty(hidden = true)
    @Deprecated
    private String[] buttons;
}
